/* 树结构连线样式 */
:deep(.el-tree) {
    --tree-indent: 30px;
  }
  
  :deep(.el-tree-node) {
    position: relative;
  }
  
  :deep(.el-tree-node__children) {
    padding-left: 20px;
  }
  
  :deep(.el-tree-node::before) {
    content: "";
    height: 100%;
    width: 1px;
    background-color: #F86E04;
    position: absolute;
    left: calc(var(--tree-indent) * (var(--level, 0) - 0.5));
    /* left: -12px; */
    top: -13px;
    transform: translateX(-50%); /* 居中对齐到缩进线 */
  }

  /* 为不同层级的节点设置不同的 level 变量 */
  :deep(.el-tree-node__children .el-tree-node) {
      --level: 1;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node) {
      --level: 2;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
      --level: 3;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 4;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 5;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 6;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 7;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 8;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 9;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 10;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 11;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 12;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 13;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 14;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 15;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 16;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 17;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 18;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 19;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 20;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 21;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 22;
  }

  :deep(.el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node__children .el-tree-node) {
    --level: 23;
  }
  
  :deep(.el-tree-node:not(.el-tree > .el-tree-node)::after) {
    content: "";
    width: 23px;
    height: 1px;
    background-color: #F86E04;
    position: absolute;
    left: calc(var(--tree-indent) * (var(--level, 0) - 0.5));
    top: 18px;
    transform: translateY(-50%);
  }
  
  :deep(.el-tree-node:last-child::before) {
    height: 32px;
  }
  
  :deep(.el-tree > .el-tree-node::before,
  .el-tree > .el-tree-node::after) {
    display: none;
  }
  

  :deep(.el-tree-node__content) {
      height: 40px; /* 占满整个节点高度 */
      line-height: 40px;
  }
  
  :deep(.el-tree-node.is-current > .el-tree-node__content .el-tree-node__label) {
    font-weight: 500;
  }